import { createAction } from 'redux-actions'
import { UPDATEPAGEJOBDETAIL } from '../types/pagejobdetail'
import {
  getShareRequest
} from '../../../../service/post-controller'

export const DOREQUESTGETSHARE = createAction(UPDATEPAGEJOBDETAIL, ({ id, userId }) => {
  return new Promise(resolve => {
    getShareRequest({ id, userId }).then(({ data }) => {
      resolve({})
    })
  })
})
